package ContainerLayer;
import java.util.ArrayList;

/**
 * Write a description of class PartOrder here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class PartOrder
{
    // instance variables - replace the example below with your own

    private ProductDescription products;
    private ProductNo productNo;
    private long id;

    /**
     * Constructor for objects of class PartOrder
     */
    public PartOrder(long id, ProductDescription products, ProductNo productNo)
    {
        // initialise instance variables  

        this.id = id;
        this.products = products;
        this.productNo = productNo;

    }
    
    public long getID()
    {
        return id;
    }
    //     
    //     public void setID()
    //     {
    //         this.id = id;
    //     }
    
    public void updateProductDescription(ProductDescription products)
    {
        this.products = products;
    }
    
    public ProductDescription readProductDescription()
    {
        return products;
    }   
    
    public void updateProductNo(ProductNo productNo)
    {
        this.productNo = productNo;
    }
    
    public ProductNo readProductNo()
    {
        return productNo;
    }
    
    
}
